/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.resto.web;

import isd.resto.modelo.RT_Mozo;
import isd.resto.rn.RT_MozosRN;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Claudio
 */
@ManagedBean
@SessionScoped
public class MozosBean {

    @EJB private RT_MozosRN mozoRN;

    private List<RT_Mozo> lista;
    private RT_Mozo mozo;

    /** Creates a new instance of MozosBean */
    public MozosBean() {
    }
    
    @PostConstruct
    public void init(){
        
        lista = mozoRN.getLista();
    }

    public List<RT_Mozo> getLista() {
        return lista;
    }

    public void setLista(List<RT_Mozo> lista) {
        this.lista = lista;
    }

    public RT_Mozo getMozo() {
        return mozo;
    }

    public void setMozo(RT_Mozo mozo) {
        this.mozo = mozo;
    }


}
